﻿//-------------------------------------------------------------------------------------------
// <copyright file="MenuItemViewModel.cs" company="Russell Wilkins">
//     Copyright (c) Russell Wilkins 2014. All Rights Reserved.
// </copyright>
// <author>Russell Wilkins</author>
// <license href="license.txt">
//     The use of this software is governed by the Microsoft Public License
//     which is included with this distribution.
// </license>
//-------------------------------------------------------------------------------------------
namespace Ripple.TestClient.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Input;

    /// <summary>
    /// TODO: Describe the class
    /// </summary>
    public class MenuItemViewModel : DependencyObject
    {
        public static readonly DependencyProperty DisplayNameProperty = DependencyProperty.Register("DisplayName", typeof(string), typeof(MenuItemViewModel));
        public static readonly DependencyProperty ToolTipProperty = DependencyProperty.Register("ToolTip", typeof(string), typeof(MenuItemViewModel));

        /// <summary>
        /// Initializes a new instance of the <see cref="T:MenuItemViewModel"/> class.
        /// </summary>
        public MenuItemViewModel()
            : base()
        {
            this.ListItems = new ObservableCollection<MenuItemViewModel>();
        }

        public ICommand Command { get; set; }

        public string DisplayName
        {
            get { return (string)GetValue(DisplayNameProperty); }
            set { SetValue(DisplayNameProperty, value); }
        }

        public string InputGestureText { get; set; }

        public ObservableCollection<MenuItemViewModel> ListItems { get; private set; }

        public string ToolTip
        {
            get { return (string)GetValue(ToolTipProperty); }
            set { SetValue(ToolTipProperty, value); }
        }
    }
}